import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

// 粒子效果
import VueParticles from 'vue-particles'
Vue.use(VueParticles)

// 全局form校验
import rules from './utils/rules'
Vue.prototype.rules = rules

// 全局样式
import '@/styles/index.scss'

// element-Ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

// axios
import axios from 'axios'
Vue.prototype.$axios = axios

// 路由守卫
import '@/permission'

// 按钮水波纹
import waves from '@/directive/waves/index'
Vue.directive('waves', waves)

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
